package com.uwo.house.util;

import java.util.UUID;

/**
 * Created by YSTen on 2017/7/16.
 */
public class UtilDataFormat {

    /**
     * 生成UUID，无"-"
     * @return
     */
    public static String getIdByUUID(){
        UUID uuid = UUID.randomUUID();
        String uuidStr = uuid.toString().replaceAll("-","");
        return uuidStr;
    }


    /**
     * 生成UUID
     * @return
     */
    public static String getUUID(){
        return UUID.randomUUID().toString();
    }
}
